package com.ttdc.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrderDetailsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderDetailsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * 
     * 
     * @author wcyong
     * 
     * @date 2018-09-24
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOdIdIsNull() {
            addCriterion("od_id is null");
            return (Criteria) this;
        }

        public Criteria andOdIdIsNotNull() {
            addCriterion("od_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdIdEqualTo(Integer value) {
            addCriterion("od_id =", value, "odId");
            return (Criteria) this;
        }

        public Criteria andOdIdNotEqualTo(Integer value) {
            addCriterion("od_id <>", value, "odId");
            return (Criteria) this;
        }

        public Criteria andOdIdGreaterThan(Integer value) {
            addCriterion("od_id >", value, "odId");
            return (Criteria) this;
        }

        public Criteria andOdIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("od_id >=", value, "odId");
            return (Criteria) this;
        }

        public Criteria andOdIdLessThan(Integer value) {
            addCriterion("od_id <", value, "odId");
            return (Criteria) this;
        }

        public Criteria andOdIdLessThanOrEqualTo(Integer value) {
            addCriterion("od_id <=", value, "odId");
            return (Criteria) this;
        }

        public Criteria andOdIdIn(List<Integer> values) {
            addCriterion("od_id in", values, "odId");
            return (Criteria) this;
        }

        public Criteria andOdIdNotIn(List<Integer> values) {
            addCriterion("od_id not in", values, "odId");
            return (Criteria) this;
        }

        public Criteria andOdIdBetween(Integer value1, Integer value2) {
            addCriterion("od_id between", value1, value2, "odId");
            return (Criteria) this;
        }

        public Criteria andOdIdNotBetween(Integer value1, Integer value2) {
            addCriterion("od_id not between", value1, value2, "odId");
            return (Criteria) this;
        }

        public Criteria andCxIdIsNull() {
            addCriterion("cx_id is null");
            return (Criteria) this;
        }

        public Criteria andCxIdIsNotNull() {
            addCriterion("cx_id is not null");
            return (Criteria) this;
        }

        public Criteria andCxIdEqualTo(Integer value) {
            addCriterion("cx_id =", value, "cxId");
            return (Criteria) this;
        }

        public Criteria andCxIdNotEqualTo(Integer value) {
            addCriterion("cx_id <>", value, "cxId");
            return (Criteria) this;
        }

        public Criteria andCxIdGreaterThan(Integer value) {
            addCriterion("cx_id >", value, "cxId");
            return (Criteria) this;
        }

        public Criteria andCxIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("cx_id >=", value, "cxId");
            return (Criteria) this;
        }

        public Criteria andCxIdLessThan(Integer value) {
            addCriterion("cx_id <", value, "cxId");
            return (Criteria) this;
        }

        public Criteria andCxIdLessThanOrEqualTo(Integer value) {
            addCriterion("cx_id <=", value, "cxId");
            return (Criteria) this;
        }

        public Criteria andCxIdIn(List<Integer> values) {
            addCriterion("cx_id in", values, "cxId");
            return (Criteria) this;
        }

        public Criteria andCxIdNotIn(List<Integer> values) {
            addCriterion("cx_id not in", values, "cxId");
            return (Criteria) this;
        }

        public Criteria andCxIdBetween(Integer value1, Integer value2) {
            addCriterion("cx_id between", value1, value2, "cxId");
            return (Criteria) this;
        }

        public Criteria andCxIdNotBetween(Integer value1, Integer value2) {
            addCriterion("cx_id not between", value1, value2, "cxId");
            return (Criteria) this;
        }

        public Criteria andCpIdIsNull() {
            addCriterion("cp_id is null");
            return (Criteria) this;
        }

        public Criteria andCpIdIsNotNull() {
            addCriterion("cp_id is not null");
            return (Criteria) this;
        }

        public Criteria andCpIdEqualTo(Integer value) {
            addCriterion("cp_id =", value, "cpId");
            return (Criteria) this;
        }

        public Criteria andCpIdNotEqualTo(Integer value) {
            addCriterion("cp_id <>", value, "cpId");
            return (Criteria) this;
        }

        public Criteria andCpIdGreaterThan(Integer value) {
            addCriterion("cp_id >", value, "cpId");
            return (Criteria) this;
        }

        public Criteria andCpIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("cp_id >=", value, "cpId");
            return (Criteria) this;
        }

        public Criteria andCpIdLessThan(Integer value) {
            addCriterion("cp_id <", value, "cpId");
            return (Criteria) this;
        }

        public Criteria andCpIdLessThanOrEqualTo(Integer value) {
            addCriterion("cp_id <=", value, "cpId");
            return (Criteria) this;
        }

        public Criteria andCpIdIn(List<Integer> values) {
            addCriterion("cp_id in", values, "cpId");
            return (Criteria) this;
        }

        public Criteria andCpIdNotIn(List<Integer> values) {
            addCriterion("cp_id not in", values, "cpId");
            return (Criteria) this;
        }

        public Criteria andCpIdBetween(Integer value1, Integer value2) {
            addCriterion("cp_id between", value1, value2, "cpId");
            return (Criteria) this;
        }

        public Criteria andCpIdNotBetween(Integer value1, Integer value2) {
            addCriterion("cp_id not between", value1, value2, "cpId");
            return (Criteria) this;
        }

        public Criteria andOdListIdIsNull() {
            addCriterion("od_list_id is null");
            return (Criteria) this;
        }

        public Criteria andOdListIdIsNotNull() {
            addCriterion("od_list_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdListIdEqualTo(Integer value) {
            addCriterion("od_list_id =", value, "odListId");
            return (Criteria) this;
        }

        public Criteria andOdListIdNotEqualTo(Integer value) {
            addCriterion("od_list_id <>", value, "odListId");
            return (Criteria) this;
        }

        public Criteria andOdListIdGreaterThan(Integer value) {
            addCriterion("od_list_id >", value, "odListId");
            return (Criteria) this;
        }

        public Criteria andOdListIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("od_list_id >=", value, "odListId");
            return (Criteria) this;
        }

        public Criteria andOdListIdLessThan(Integer value) {
            addCriterion("od_list_id <", value, "odListId");
            return (Criteria) this;
        }

        public Criteria andOdListIdLessThanOrEqualTo(Integer value) {
            addCriterion("od_list_id <=", value, "odListId");
            return (Criteria) this;
        }

        public Criteria andOdListIdIn(List<Integer> values) {
            addCriterion("od_list_id in", values, "odListId");
            return (Criteria) this;
        }

        public Criteria andOdListIdNotIn(List<Integer> values) {
            addCriterion("od_list_id not in", values, "odListId");
            return (Criteria) this;
        }

        public Criteria andOdListIdBetween(Integer value1, Integer value2) {
            addCriterion("od_list_id between", value1, value2, "odListId");
            return (Criteria) this;
        }

        public Criteria andOdListIdNotBetween(Integer value1, Integer value2) {
            addCriterion("od_list_id not between", value1, value2, "odListId");
            return (Criteria) this;
        }

        public Criteria andOdNameIsNull() {
            addCriterion("od_name is null");
            return (Criteria) this;
        }

        public Criteria andOdNameIsNotNull() {
            addCriterion("od_name is not null");
            return (Criteria) this;
        }

        public Criteria andOdNameEqualTo(String value) {
            addCriterion("od_name =", value, "odName");
            return (Criteria) this;
        }

        public Criteria andOdNameNotEqualTo(String value) {
            addCriterion("od_name <>", value, "odName");
            return (Criteria) this;
        }

        public Criteria andOdNameGreaterThan(String value) {
            addCriterion("od_name >", value, "odName");
            return (Criteria) this;
        }

        public Criteria andOdNameGreaterThanOrEqualTo(String value) {
            addCriterion("od_name >=", value, "odName");
            return (Criteria) this;
        }

        public Criteria andOdNameLessThan(String value) {
            addCriterion("od_name <", value, "odName");
            return (Criteria) this;
        }

        public Criteria andOdNameLessThanOrEqualTo(String value) {
            addCriterion("od_name <=", value, "odName");
            return (Criteria) this;
        }

        public Criteria andOdNameLike(String value) {
            addCriterion("od_name like", value, "odName");
            return (Criteria) this;
        }

        public Criteria andOdNameNotLike(String value) {
            addCriterion("od_name not like", value, "odName");
            return (Criteria) this;
        }

        public Criteria andOdNameIn(List<String> values) {
            addCriterion("od_name in", values, "odName");
            return (Criteria) this;
        }

        public Criteria andOdNameNotIn(List<String> values) {
            addCriterion("od_name not in", values, "odName");
            return (Criteria) this;
        }

        public Criteria andOdNameBetween(String value1, String value2) {
            addCriterion("od_name between", value1, value2, "odName");
            return (Criteria) this;
        }

        public Criteria andOdNameNotBetween(String value1, String value2) {
            addCriterion("od_name not between", value1, value2, "odName");
            return (Criteria) this;
        }

        public Criteria andOdCountIsNull() {
            addCriterion("od_count is null");
            return (Criteria) this;
        }

        public Criteria andOdCountIsNotNull() {
            addCriterion("od_count is not null");
            return (Criteria) this;
        }

        public Criteria andOdCountEqualTo(Integer value) {
            addCriterion("od_count =", value, "odCount");
            return (Criteria) this;
        }

        public Criteria andOdCountNotEqualTo(Integer value) {
            addCriterion("od_count <>", value, "odCount");
            return (Criteria) this;
        }

        public Criteria andOdCountGreaterThan(Integer value) {
            addCriterion("od_count >", value, "odCount");
            return (Criteria) this;
        }

        public Criteria andOdCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("od_count >=", value, "odCount");
            return (Criteria) this;
        }

        public Criteria andOdCountLessThan(Integer value) {
            addCriterion("od_count <", value, "odCount");
            return (Criteria) this;
        }

        public Criteria andOdCountLessThanOrEqualTo(Integer value) {
            addCriterion("od_count <=", value, "odCount");
            return (Criteria) this;
        }

        public Criteria andOdCountIn(List<Integer> values) {
            addCriterion("od_count in", values, "odCount");
            return (Criteria) this;
        }

        public Criteria andOdCountNotIn(List<Integer> values) {
            addCriterion("od_count not in", values, "odCount");
            return (Criteria) this;
        }

        public Criteria andOdCountBetween(Integer value1, Integer value2) {
            addCriterion("od_count between", value1, value2, "odCount");
            return (Criteria) this;
        }

        public Criteria andOdCountNotBetween(Integer value1, Integer value2) {
            addCriterion("od_count not between", value1, value2, "odCount");
            return (Criteria) this;
        }

        public Criteria andOdPriceIsNull() {
            addCriterion("od_price is null");
            return (Criteria) this;
        }

        public Criteria andOdPriceIsNotNull() {
            addCriterion("od_price is not null");
            return (Criteria) this;
        }

        public Criteria andOdPriceEqualTo(Float value) {
            addCriterion("od_price =", value, "odPrice");
            return (Criteria) this;
        }

        public Criteria andOdPriceNotEqualTo(Float value) {
            addCriterion("od_price <>", value, "odPrice");
            return (Criteria) this;
        }

        public Criteria andOdPriceGreaterThan(Float value) {
            addCriterion("od_price >", value, "odPrice");
            return (Criteria) this;
        }

        public Criteria andOdPriceGreaterThanOrEqualTo(Float value) {
            addCriterion("od_price >=", value, "odPrice");
            return (Criteria) this;
        }

        public Criteria andOdPriceLessThan(Float value) {
            addCriterion("od_price <", value, "odPrice");
            return (Criteria) this;
        }

        public Criteria andOdPriceLessThanOrEqualTo(Float value) {
            addCriterion("od_price <=", value, "odPrice");
            return (Criteria) this;
        }

        public Criteria andOdPriceIn(List<Float> values) {
            addCriterion("od_price in", values, "odPrice");
            return (Criteria) this;
        }

        public Criteria andOdPriceNotIn(List<Float> values) {
            addCriterion("od_price not in", values, "odPrice");
            return (Criteria) this;
        }

        public Criteria andOdPriceBetween(Float value1, Float value2) {
            addCriterion("od_price between", value1, value2, "odPrice");
            return (Criteria) this;
        }

        public Criteria andOdPriceNotBetween(Float value1, Float value2) {
            addCriterion("od_price not between", value1, value2, "odPrice");
            return (Criteria) this;
        }

        public Criteria andOdTimeIsNull() {
            addCriterion("od_time is null");
            return (Criteria) this;
        }

        public Criteria andOdTimeIsNotNull() {
            addCriterion("od_time is not null");
            return (Criteria) this;
        }

        public Criteria andOdTimeEqualTo(Date value) {
            addCriterion("od_time =", value, "odTime");
            return (Criteria) this;
        }

        public Criteria andOdTimeNotEqualTo(Date value) {
            addCriterion("od_time <>", value, "odTime");
            return (Criteria) this;
        }

        public Criteria andOdTimeGreaterThan(Date value) {
            addCriterion("od_time >", value, "odTime");
            return (Criteria) this;
        }

        public Criteria andOdTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("od_time >=", value, "odTime");
            return (Criteria) this;
        }

        public Criteria andOdTimeLessThan(Date value) {
            addCriterion("od_time <", value, "odTime");
            return (Criteria) this;
        }

        public Criteria andOdTimeLessThanOrEqualTo(Date value) {
            addCriterion("od_time <=", value, "odTime");
            return (Criteria) this;
        }

        public Criteria andOdTimeIn(List<Date> values) {
            addCriterion("od_time in", values, "odTime");
            return (Criteria) this;
        }

        public Criteria andOdTimeNotIn(List<Date> values) {
            addCriterion("od_time not in", values, "odTime");
            return (Criteria) this;
        }

        public Criteria andOdTimeBetween(Date value1, Date value2) {
            addCriterion("od_time between", value1, value2, "odTime");
            return (Criteria) this;
        }

        public Criteria andOdTimeNotBetween(Date value1, Date value2) {
            addCriterion("od_time not between", value1, value2, "odTime");
            return (Criteria) this;
        }

        public Criteria andOdCreatorIdIsNull() {
            addCriterion("od_creator_id is null");
            return (Criteria) this;
        }

        public Criteria andOdCreatorIdIsNotNull() {
            addCriterion("od_creator_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdCreatorIdEqualTo(Integer value) {
            addCriterion("od_creator_id =", value, "odCreatorId");
            return (Criteria) this;
        }

        public Criteria andOdCreatorIdNotEqualTo(Integer value) {
            addCriterion("od_creator_id <>", value, "odCreatorId");
            return (Criteria) this;
        }

        public Criteria andOdCreatorIdGreaterThan(Integer value) {
            addCriterion("od_creator_id >", value, "odCreatorId");
            return (Criteria) this;
        }

        public Criteria andOdCreatorIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("od_creator_id >=", value, "odCreatorId");
            return (Criteria) this;
        }

        public Criteria andOdCreatorIdLessThan(Integer value) {
            addCriterion("od_creator_id <", value, "odCreatorId");
            return (Criteria) this;
        }

        public Criteria andOdCreatorIdLessThanOrEqualTo(Integer value) {
            addCriterion("od_creator_id <=", value, "odCreatorId");
            return (Criteria) this;
        }

        public Criteria andOdCreatorIdIn(List<Integer> values) {
            addCriterion("od_creator_id in", values, "odCreatorId");
            return (Criteria) this;
        }

        public Criteria andOdCreatorIdNotIn(List<Integer> values) {
            addCriterion("od_creator_id not in", values, "odCreatorId");
            return (Criteria) this;
        }

        public Criteria andOdCreatorIdBetween(Integer value1, Integer value2) {
            addCriterion("od_creator_id between", value1, value2, "odCreatorId");
            return (Criteria) this;
        }

        public Criteria andOdCreatorIdNotBetween(Integer value1, Integer value2) {
            addCriterion("od_creator_id not between", value1, value2, "odCreatorId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * 
     * 
     * @author wcyong
     * 
     * @date 2018-09-24
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}